﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JSTree.Sample.Models
{
    public class Node
    {
        public int Id { get; set; }
        public int? ParentId { get; set; }
        public string Type { get; set; }
        public string Title { get; set; }

        public Node()
        { }

        public Node(int id)
        {
            this.Id = id;
        }

        public Node(int? parentId, string type, string title)
        {
            this.ParentId = parentId;
            this.Type = type;
            this.Title = title;
        }


    }
}